﻿@{Layout = "~/Views/Shared/layoutParaAjax.cshtml";}
@model orienta.ViewModels.Dependencia
@using (Html.BeginForm())
{
    @Html.ValidationSummary(true)
<center>
            <div style="width: 840px;">
                <table  width="100%" cellpadding="0" border="0"  cellspacing="0">
                    <tr>
                        <td>
                            <table class="tablaPrincipal_MIDIS"  width="100%" cellpadding="3" border="0"  cellspacing="0">
                                <tr>
                                    <td>
                                        <table cellpadding="0" cellspacing="0" border="0"  width="100%">
                                            <tr>
                                                <td>
                                                    <table  class="tablaTitulo_MIDIS" style="width:180PX;" cellpadding="2" cellspacing="0" border="0">
                                                        <tr>
                                                            <td  align="center">
                                                                <div id="general" class="divTitulo_MIDIS" style="width:200PX;">
                                                                    <span style="background-color:#b50055;color:white;">[REGISTRAR NUEVA DEPENDENCIA]</span>
                                                                </div>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <table width="100%" class="tablaInterna_MIDIS" cellpadding="0">
                                                        <tr><td>&nbsp;</td></tr>
                                                        <tr>
                                                            <td align="center">
                                                                <table width="99%" border="0" cellpadding="1" cellspacing="0" class="tablaPrincipalSin">
                                                                    <tbody class="tituloTextNormal">
                                                                        <tr align="left">
                                                                            <td>Tipo:</td>
                                                                            <td>:</td>
                                                                            <td>
                                                                            @Html.DropDownList("nIdeTipo", (IEnumerable<SelectListItem>)ViewBag.CategoriaDependencia)
                                                                            @Html.ValidationMessageFor(model => model.nIdeTipo)
                                                                            </td>
                                                                        </tr>
                                                                        <tr align="left">
                                                                            <td>Descripci&oacute;n</td>
                                                                            <td>:</td>
                                                                            <td>
                                                                            @Html.EditorFor(model => model.sDescripcion)
                                                                            @Html.ValidationMessageFor(model => model.sDescripcion)
                                                                            </td>
                                                                        </tr>
                                                                        <tr align="left">
                                                                            <td>Regi&oacute;n Geografica</td>
                                                                            <td>:</td>
                                                                            <td>
                                                                            @Html.DropDownList("nIdeDepRegion", (IEnumerable<SelectListItem>)ViewBag.DepRegion, "--Seleccione--", new { onchange = "javascript:onchangeLimpiarDepPadre();" })
                                                                            @Html.ValidationMessageFor(model => model.nIdeDepRegion)
                                                                            </td>
                                                                        </tr>
                                                                        <tr align="left">
                                                                            <td>Dependencia Padre</td>
                                                                            <td>:</td>
                                                                            <td>
                                                                            @Html.TextBoxFor(model => model.depPadre, new { autocomplete = "OFF", records = "1", letra = "", dataSrc = "dataDependencia", size = "52", alt = "nIdeDepPadre", @class = "cajaTextoMayuscula wickEnabledAuto", ondblclick = "javascript:limpiaCaja(this);" })
                                                                            <img src="../images/browse.gif" class="lupita2_MIDIS" alt="VER DEPENDENCIA" onclick="javascript:mostrarDependenciaCreate();" />
                                                                            @Html.HiddenFor(model => model.nIdeDepPadre)
                                                                            @Html.ValidationMessageFor(model => model.nIdeDepPadre)
                                                                            </td>
                                                                        </tr>
                                                                        <tr align="left">
                                                                            <td>C&oacute;digo</td>
                                                                            <td>:</td>
                                                                            <td>
                                                                            @Html.EditorFor(model => model.nCodigo)
                                                                            <img src="../images/browse.gif" class="lupita2_MIDIS" alt="VER CODIGOS" onclick="javascript:mostrarDependenciaCodigo();" />
                                                                            @Html.ValidationMessageFor(model => model.nCodigo)
                                                                            </td>
                                                                        </tr>
                                                                        <tr align="left">
                                                                            <td>Siglas</td>
                                                                            <td>:</td>
                                                                            <td>
                                                                            @Html.EditorFor(model => model.sSiglas)
                                                                            @Html.ValidationMessageFor(model => model.sSiglas)
                                                                            </td>
                                                                        </tr>
                                                                        <tr align="left">
                                                                            <td>Selecci&oacute;n</td>
                                                                            <td>:</td>
                                                                            <td>
                                                                            @Html.DropDownList("sSeleccion", ViewBag.List as SelectList)
                                                                            @Html.ValidationMessageFor(model => model.nSeleccion)
                                                                            </td>
                                                                        </tr>
                                                                        <tr align="left">
                                                                            <td>Fecha Inicio Vigencia</td>
                                                                            <td>:</td>
                                                                            <td>
                                                                            @Html.TextBoxFor(model => model.dtFecInic, new { @maxlength = "10", style = "width:60px", onkeyup = "javascript:MiFechaNew(this);", ondblclick = "javascript:limpiaCaja(this)" })
                                                                            @Html.ValidationMessageFor(model => model.dtFecInic)
                                                                            </td>
                                                                        </tr>
                                                                        <tr align="left">
                                                                            <td>Fecha Fin Vigencia</td>
                                                                            <td>:</td>
                                                                            <td>
                                                                            @Html.TextBoxFor(model => model.dtFecFin, new { @maxlength = "10", style = "width:60px", onkeyup = "javascript:MiFechaNew(this);", ondblclick = "javascript:limpiaCaja(this)" })
                                                                            @Html.ValidationMessageFor(model => model.dtFecFin)
                                                                            </td>
                                                                        </tr>
                                                                        <tr>
                                                                            <td colspan="3" align="center">
                                                                                <input type="submit" value="Registrar"  name="btnNuevo" class="boton" />  
                                                                            </td>
                                                                        </tr>
                                                                        <tr><td colspan="3" >&nbsp;</td></tr>
                                                                        
                                                                    </tbody>
                                                                </table>
                                                        </tr>
                                                        <tr><td>&nbsp;</td></tr>
                                                    </table>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                                <tr><td>&nbsp;</td></tr>
                            </table>
                        </td>
                    </tr>
                    <tr><td>&nbsp;</td></tr>
                    
                </table>
            </div>
        </center>
}